package com.lipl.base.javase.designpattern.decoartor.V2;

/**
 * @Auther: 15541
 * @Date: 2020/12/16 14:55
 * @Description:
 */
public class EggDecorator extends BattercakeDecotator{
    public EggDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 1;
    }
}

